package com.google.code.iproc;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class AuthorIndexEntry {

	private final String authorName;
	private final List<ToCEntry> occurrences = new LinkedList<ToCEntry>();
	
	public AuthorIndexEntry( final String authorName ) {
		this.authorName = authorName;
	}
	
	public String getAuthorName() {
		return this.authorName;
	}
	
	public void addOccurrence( final ToCEntry tocEntry ) {
		this.occurrences.add( tocEntry );
	}
	
	public List<ToCEntry> getOccurrences() {
		return Collections.unmodifiableList( this.occurrences );
	}

}
